var dao = require('./dao')
const { json } = require('express')

var navDAL = {
    img:function(users,cb){
        var sql = 'select * from user where uid=?'
        var params=[users.uid]
        console.log(params)
        dao(sql, params, function (err, results) {
            if (err) {
                console.log('没查到')
                cb(err, null)
            } else {
                console.log('查到了')
                cb(null, results)
            }
        }) 
    }
}
module.exports = navDAL